package com.ruyuan.eshop.fulfill.service;

import com.ruyuan.eshop.fulfill.builder.FulfillData;
import com.ruyuan.eshop.fulfill.domain.request.ReceiveFulfillRequest;

/**
 <p>
 履约service
 </p>
 * 儒猿课堂: http://www.ruyuan2020.com
 * @Author zhonghuashishan
 * @Remark 有问题直接联系客服VX: ruyuan-1111 ，源码-笔记-技术交流群
 * @Version 1.0
 **/
public interface FulfillService {

    /**
     * 创建履约单
     *
     * @param request
     */
    FulfillData createFulfillOrders(ReceiveFulfillRequest request);

    /**
     * 取消履约单
     *
     * @param orderId
     */
    @Deprecated
    void cancelFulfillOrder(String orderId);

    /**
     * 触发履约
     */
    Boolean receiveOrderFulFill(ReceiveFulfillRequest request);

}
